<!-- 头部导航栏 -->
<template>
  <div class="nav_bar_comp">
    <van-nav-bar
      :title="title"
      left-arrow
      left-left="goBack"
    />
  </div>
</template>

<script>
import Vue from 'vue';
import { NavBar } from 'vant';

Vue.use(NavBar);

export default {
  name: "navBarComp",
  props:['title'],
  data() {
    return {
    }
  },
  methods: {
    goBack() {
      this.$router.back(-1)
    }
  }
}
</script>

<style scoped lang="stylus">
</style>
